package com.miyu.system.pojo.system;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户表;
 * 用户编码，手机号 邮箱 保持唯一
 * @author : miyu
 * @date : 2022-9-30
 */
@ApiModel(value = "用户表",description = "")
@Data
@Entity
@Table(name="sys_user")
public class SysUser implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "")
    @Column(name = "user_id", nullable = false, length =32 )
    private String userId ;
    /** 用户名 */
    @ApiModelProperty(name = "用户名",notes = "")
    @Column(name = "user_name", nullable = true, length =90 )
    private String userName ;
    /** 用户编码 */
    @ApiModelProperty(name = "用户编码",notes = "")
    @Column(name = "user_code", nullable = true, length =20 )
    private String userCode ;
    /** 密码 */
    @ApiModelProperty(name = "密码",notes = "")
    @Column(name = "user_password", nullable = true, length =50 )
    private String userPassword ;
    /** 邮箱 */
    @ApiModelProperty(name = "邮箱",notes = "")
    @Column(name = "user_email", nullable = true, length =90 )
    private String userEmail ;
    /** 手机 */
    @ApiModelProperty(name = "手机",notes = "")
    @Column(name = "user_phone", nullable = true, length =15 )
    private String userPhone ;
    /** 头像 */
    @ApiModelProperty(name = "头像",notes = "")
    @Column(name = "user_img", nullable = true, length =90 )
    private String userImg ;
    /** 是否停用;默认0 使用 */
    @ApiModelProperty(name = "是否停用",notes = "默认0 使用")
    @Column(name = "is_stop", nullable = true, length =1 )
    private String isStop = "0" ;
    /** 是否使用;默认1 使用 */
    @ApiModelProperty(name = "是否使用",notes = "默认1 使用")
    @Column(name = "is_use", nullable = true, length =1 )
    private String isUse = "1" ;
    /** 来源 */
    @ApiModelProperty(name = "来源",notes = "")
    @Column(name = "source_id", nullable = true, length =32 )
    private String sourceId ;
    /** 备注 */
    @ApiModelProperty(name = "备注",notes = "")
    @Column(name = "memo", nullable = true, length =90 )
    private String memo ;
}